.index-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;

  .container-carousel {
    height: 33.3vw;
  }

  .container-main {
    flex: 1;
    padding-bottom: 3.5rem;

    .main-column {
      margin-top: 3.5rem;

      .column-title {
        display: flex;
        align-items: flex-end;
        flex: 1;

        .title {
          color: #333;
          font-size: 2rem;
          font-weight: 600;
          line-height: 2.8125rem;
        }

        .subtitle {
          margin-left: 1rem;
          color: #999;
          font-size: 1rem;
          line-height: 1.375rem;
          text-transform: uppercase;
        }
      }

      .column-more {
        display: flex;
        align-items: center;
        border-radius: .5rem;
        background: var(--main-color);
        padding: .75rem .75rem .75rem 1rem;
        text-decoration: none;

        span {
          color: #FFF;
          font-size: 1rem;
          line-height: 1.5rem;
          letter-spacing: .0156rem;
        }

        img {
          width: 1.5rem;
          height: 1.5rem;
          margin-left: .25rem;
        }
      }
    }

    .column-1 {
      .column-cont {
        margin-top: 1.5rem;

        .cont-left {
          color: #555;
          font-size: 1rem;
          line-height: 1.875rem;
          flex: 1;
          height: 100%;
          -webkit-line-clamp: 8;
        }

        .cont-right {
          width: auto;
          height: 15rem;
          max-width: 60%;
          margin-left: 1.5rem;
          object-fit: cover;
          border-radius: .3125rem;
          overflow: hidden;
        }
      }
    }

    .column-2 {
      position: relative;
      padding-top: 3rem;
      padding-bottom: 3rem;

      .bg {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: -1;
      }

      .title {
        color: #FFF;
        font-size: 2rem;
        font-weight: 600;
        line-height: 3rem;
        letter-spacing: .08rem;

        img {
          display: none;
        }
      }

      .apply {
        cursor: pointer;
        border: none;
        display: inline-block;
        margin-top: 2rem;
        background: var(--main-color);
        padding: .875rem 1rem;
        color: #FFF;
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.25rem;
        letter-spacing: .0156rem;
        min-width: 8.125rem;
        border-radius: .5rem;
        text-align: center;
        text-decoration: none;
      }

      .column-mobile {
        display: none;
      }
    }

    .column-3 {
      .column-cont {
        margin-top: 2rem;
        overflow-x: auto;
        padding-bottom: .75rem;

        .cont-item {
          margin-left: 4%;
          display: flex;
          flex-direction: column;
          align-items: center;
          text-decoration: none;

          &:first-child {
            margin-left: 0;
          }

          &:hover {
            .avatar img {
              transform: scale(1.2);
            }

            .name {
              color: var(--main-color);
            }
          }

          .avatar {
            width: 10rem;
            height: 10rem;
            border-radius: 50%;
            overflow: hidden;

            img {
              transition: all .3s;
            }
          }

          .post {
            color: #FFF;
            font-size: .875rem;
            line-height: 1.25rem;
            text-align: center;
            background: url(../img/tips.png) no-repeat;
            background-size: cover;
            width: 9.25rem;
            height: 2.4375rem;
            line-height: 1.9375rem;
            margin-top: -1.9375rem;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            padding: 0 1.25rem;
            position: relative;
            z-index: 1;
          }

          .name {
            color: #333;
            font-size: 1rem;
            line-height: 1.375rem;
            text-align: center;
            margin-top: .5rem;
            overflow: hidden;
            width: 100%;
            white-space: nowrap;
            text-overflow: ellipsis;
            transition: color .3s;
          }
        }

        @media (min-width: 767px) {
          &::-webkit-scrollbar {
            /*滚动条整体样式*/
            width: auto;
            /*高宽分别对应横竖滚动条的尺寸*/
            height: .5rem;
          }

          &::-webkit-scrollbar-thumb {
            /*滚动条里面小方块*/
            border-radius: .625rem;
            box-shadow: inset 0 0 5px rgba(97, 184, 179, 0.1);
            background: #ccc;
          }

          &::-webkit-scrollbar-track {
            /*滚动条里面轨道*/
            box-shadow: inset 0 0 5px rgba(87, 175, 187, 0.1);
            border-radius: .625rem;
            background: #ededed;
          }
        }
      }
    }

    .column-4 {
      .column-cont {
        .cont-item {
          margin-right: 5%;
          margin-top: 2.5rem;
          width: 30%;
          display: flex;
          flex-direction: column;
          align-items: center;
          text-decoration: none;

          &:nth-child(3n) {
            margin-right: 0;
          }

          &:hover {
            .image img {
              transform: scale(1.2);
            }

            .name {
              color: var(--main-color);
            }
          }

          .image {
            position: relative;
            width: 100%;
            height: 0;
            padding-top: 70%;
            border-radius: .625rem;
            overflow: hidden;

            img {
              position: absolute;
              top: 0;
              left: 0;
              right: 0;
              bottom: 0;
              transition: all .3s;
              object-fit: contain;
            }

            .post {
              position: absolute;
              bottom: 0;
              left: 0;
              right: 0;
              text-align: center;
              border-radius: 0 0 .625rem .625rem;
              background: rgba(0, 0, 0, 0.40);
              color: #FFF;
              font-size: 1rem;
              font-weight: 600;
              overflow: hidden;
              white-space: nowrap;
              text-overflow: ellipsis;
              padding: .75rem;
            }
          }

          .name {
            color: #333;
            font-size: 1rem;
            line-height: 1.375rem;
            text-align: center;
            margin-top: .5rem;
            width: 100%;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            transition: color .3s;
          }
        }
      }
    }

    .column-5,
    .column-6 {
      display: none;

      .column-cont {
        margin-top: 1.5rem;

        .item {
          padding: 1rem 0;
          border-bottom: 1px solid #E6E6E6;
          text-decoration: none;

          &:last-child {
            border-bottom: none;
          }

          .item-title {
            color: #333;
            font-size: .875rem;
            line-height: 1.25rem;
            transition: color .3s;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            flex: 1;
            margin-right: .5rem;
          }

          .item-date {
            color: #909090;
            font-size: .875rem;
            line-height: 1.25rem;
            transition: color .3s;
          }

          &:hover {

            .item-title,
            .item-date {
              color: var(--main-color);
            }
          }
        }
      }
    }

    .column-6 {
      margin-top: 0;

      .column-left,
      .column-right {
        margin-top: 3.5rem;
        flex: 1;
      }

      .column-right {
        display: none;
        margin-left: 8%;
      }

      @media screen and (max-width: 950px) {

        .column-left,
        .column-right {
          width: 100%;
          margin-top: 0;
        }
      }
    }
  }

  .modal-dialog {
    .modal-header {
      .modal-title {
        color: #333;
        font-size: 1.5rem;
        font-weight: bold;
        line-height: 2.125rem;
        text-align: center;
        flex: 1;
        padding-left: 3rem;
      }
    }


    .modal-body {
      .tips {
        color: #8D8D8D;
        font-size: 1rem;
        line-height: 1.375rem;
        text-align: center;
      }

      .code {
        width: 100%;
        max-height: 25rem;
        max-width: 25rem;
        margin: 1rem auto;
      }
    }
  }

  // 适配手机端
  @media screen and (max-width: 767px) {
    .container-main {
      padding-bottom: 2rem;

      .main-column {
        margin-top: 1.25rem;

        .column-title {
          .title {
            font-size: 1.125rem;
            line-height: 1.375rem;
          }

          .subtitle {
            font-size: .75rem;
            line-height: 1rem;
          }
        }

        .column-more {
          padding: .5rem .75rem;
          border-radius: .3125rem;

          span {
            color: #FFF;
            font-size: .75rem;
            line-height: 1.125rem;
            letter-spacing: .0156rem;
          }

          img {
            width: 1rem;
            height: 1rem;
            margin-left: .25rem;
          }
        }
      }

      .column-1 {
        .column-cont {
          .cont-left {
            font-size: .875rem;
            line-height: 1.5rem;
            flex: 1;
            height: 100%;
            -webkit-line-clamp: 5;
          }

          .cont-right {
            width: 10rem;
            height: 7.5rem;
            margin-left: .75rem;
          }
        }
      }

      .column-2 {
        padding: 0;

        .column-default {
          display: none;
        }

        .column-mobile {
          display: block;
          margin: 0 -15px;

          .title {
            width: 100%;
            padding: 1rem 0;
            font-size: 1.25rem;
            line-height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: transparent;
            border: none;

            img {
              display: inline-block;
              width: 1.5rem;
              height: auto;
              margin-left: .5rem;
            }
          }
        }
      }

      .column-3 {
        .column-cont {
          .cont-item {
            margin-left: 1rem;

            .avatar {
              width: 6.25rem;
              height: 6.25rem;
            }

            .post {
              width: 7.5rem;
              height: 2rem;
              font-size: .75rem;
              line-height: 1.5rem;
              margin-top: -1.5rem;
            }
          }
        }
      }

      .column-4 {
        .column-cont {
          .cont-item {

            .image {
              padding-top: 100%;

              .post {
                font-size: .75rem;
                line-height: 1rem;
                padding: .375rem;
              }
            }

            .name {
              font-size: .875rem;
            }
          }
        }
      }

      .column-5,
      .column-6 {
        .column-cont {
          margin-top: .75rem;

          .item {
            padding: .75rem 0;
          }
        }

        .column-right {
          margin-top: 1.25rem;
          margin-left: 0;
        }
      }
    }
  }
}